// Club.Income 订单管理
export default [
  { // 订单管理
    path: 'order',
    redirect: { name: 'Income' },
    component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/order/routerView.vue'),
    meta: {
      title: 'order',
      code: 'OrderSearch'
    },
    children: [
      { // 收入
        path: 'income',
        component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/order/routerView.vue'),
        meta: {
          title: 'income',
          code: 'OrderSearch'
        },
        children: [
          { // 订单列表
            path: '',
            name: 'Income',
            component: () => import(/* webpackChunkName: "platform" */ '@/viewsHall/order/income.vue'),
            meta: {
              title: 'income',
              code: 'OrderSearch',
              breadcrumb: false
            }
          },
          {
            // 订单详情
            path: 'detail',
            name: 'IncomeOrderDetail',
            hidden: true,
            component: () => import(/* webpackChunkName: "platform" */ '@/viewsHall/order/orderDetail'),
            meta: {
              title: 'orderDetail',
              code: 'OrderSearch',
              parentRouteName: 'Income'
            }

          }
        ]
      },
      { // 支出
        path: 'expenditure',
        component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/order/routerView.vue'),
        meta: {
          title: 'expenditure',
          code: 'OrderSearch'
        },
        children: [
          { // 订单列表
            path: '',
            name: 'Expenditure',
            component: () => import(/* webpackChunkName: "platform" */ '@/viewsHall/order/expenditure.vue'),
            meta: {
              title: 'expenditure',
              code: 'OrderSearch',
              breadcrumb: false
            }
          },
          {
            // 订单详情
            path: 'detail',
            name: 'ExpenditureOrderDetail',
            hidden: true,
            component: () => import(/* webpackChunkName: "platform" */ '@/viewsHall/order/orderDetail'),
            meta: {
              title: 'orderDetail',
              code: 'OrderSearch',
              parentRouteName: 'Expenditure'
            }
          }
        ]
      }
      // { // 审核
      //   path: 'refund',
      //   component: () => import(/* webpackChunkName: "common" */ '@/viewsHall/order/routerView.vue'),
      //   meta: {
      //     title: 'refund',
      //     code: 'OrderSearch'
      //   },
      //   children: [
      //     { // 订单列表
      //       path: '',
      //       name: 'refund',
      //       component: () => import(/* webpackChunkName: "platform" */ '@/viewsHall/order/refund.vue'),
      //       meta: {
      //         title: 'refund',
      //         code: 'OrderSearch',
      //         breadcrumb: false
      //       }
      //     },
      //     {
      //       // 订单详情
      //       path: 'detail',
      //       name: 'refundOrderDetail',
      //       hidden: true,
      //       component: () => import(/* webpackChunkName: "platform" */ '@/viewsHall/order/orderDetail'),
      //       meta: {
      //         title: 'orderDetail',
      //         code: 'OrderSearch',
      //         parentRouteName: 'refund'
      //       }
      //     }
      //   ]
      // }
    ]
  }
];
